<?php /* Smarty version Smarty-3.1.13, created on 2014-04-06 21:36:08
         compiled from "E:\phpweb\YiVa\templates\blogitem.tpl" */ ?>
<?php /*%%SmartyHeaderCode:30808533d7d8b913251-12532235%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '58230580079c8204992d7121e68f823de6fc0572' => 
    array (
      0 => 'E:\\phpweb\\YiVa\\templates\\blogitem.tpl',
      1 => 1396791362,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '30808533d7d8b913251-12532235',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_533d7d8b9dc057_36414981',
  'variables' => 
  array (
    'postelement' => 0,
    'posttags' => 0,
    'tag' => 0,
    'pre_post' => 0,
    'nxt_post' => 0,
    'comentcount' => 0,
    'postComents' => 0,
    'coment' => 0,
    'postid' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_533d7d8b9dc057_36414981')) {function content_533d7d8b9dc057_36414981($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("layouts/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="title_template" id="blogtitle">
	<div class="titlecenter">
		<h3>
			Our&nbsp;<font>Blog</font>
		</h3>
		<p>he latest digital marketing news</p>
	</div>
</div>
<div class="titlecenter pt-t30">
	<div class="titlecenter pt-t30">
		<div class="content f_l">
			<div class="content-txt">
				<?php if ($_smarty_tpl->tpl_vars['postelement']->value!=null&&$_smarty_tpl->tpl_vars['postelement']->value!=''){?>
				<div class="meta-top">
					<h1><?php echo $_smarty_tpl->tpl_vars['postelement']->value->post_title;?>
</h1>
					<div>
						<?php  $_smarty_tpl->tpl_vars['tag'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tag']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['posttags']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tag']->key => $_smarty_tpl->tpl_vars['tag']->value){
$_smarty_tpl->tpl_vars['tag']->_loop = true;
?> <a href='<?php echo $_smarty_tpl->tpl_vars['tag']->value['url'];?>
'
							class="blogtag"><?php echo $_smarty_tpl->tpl_vars['tag']->value['name'];?>
</a> <?php } ?>
					</div>
					<time class="time"><?php echo $_smarty_tpl->tpl_vars['postelement']->value->post_date;?>
</time>
				</div>
				<?php echo $_smarty_tpl->tpl_vars['postelement']->value->post_content;?>
 <?php }?>
			</div>
			<div class="page mt40">
				<?php if ($_smarty_tpl->tpl_vars['pre_post']->value!=null&&$_smarty_tpl->tpl_vars['pre_post']->value!=''){?> <a
					href="<?php echo $_smarty_tpl->tpl_vars['pre_post']->value['url'];?>
" class="pre"><font>&lt;</font><?php echo $_smarty_tpl->tpl_vars['pre_post']->value['name'];?>
</a>
				<?php }?> <?php if ($_smarty_tpl->tpl_vars['nxt_post']->value!=null&&$_smarty_tpl->tpl_vars['nxt_post']->value!=''){?> <a
					href="<?php echo $_smarty_tpl->tpl_vars['nxt_post']->value['url'];?>
" class="next"><?php echo $_smarty_tpl->tpl_vars['nxt_post']->value['name'];?>
<font>&gt;</font></a>
				<?php }?>
			</div>
			<div class="Contact" id="contactus_form">
				<span class="culum-title mt15">Share this post</span> <br> <a
					href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/t-icon.png"></a>&nbsp;&nbsp;<a
					href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/f-icon.png"></a>&nbsp;&nbsp;<a
					href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/g-icon.png"></a> <span
					class="culum-title mt40">Comment (<font><?php echo $_smarty_tpl->tpl_vars['comentcount']->value;?>
</font>)
				</span>
				<div class="Recent">
					<ul class="mt20" id='postcomentsul'>
					<?php  $_smarty_tpl->tpl_vars['coment'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['coment']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['postComents']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['coment']->key => $_smarty_tpl->tpl_vars['coment']->value){
$_smarty_tpl->tpl_vars['coment']->_loop = true;
?>
						<li>
							<p class="f_l">
								<span><font><?php echo $_smarty_tpl->tpl_vars['coment']->value['rownum'];?>
#</font><?php echo $_smarty_tpl->tpl_vars['coment']->value['comment_content'];?>
</span>
							</p> <a href="#" class="f_l"><?php echo $_smarty_tpl->tpl_vars['coment']->value['username'];?>
</a> <time
								class="recenttime"><?php echo $_smarty_tpl->tpl_vars['coment']->value['comment_date'];?>
</time>
						</li>
					<?php } ?>
					</ul>
				</div>
				<form>
					<table style="display: inline-block;">
						<tr>
							<td align="right" width="65">Name:</td>
							<td><input type="text" id="postName" class="inputstyle01" tabindex="1"
								style="color: #009DF3;" /></td>
						</tr>
						<tr>
							<td align="right" width="65"
								style="vertical-align: top; padding-top: 5px;">message:</td>
							<td><textarea id="postMessage" class="inputstyle01" tabindex="5"></textarea></td>
						</tr>
						<tr>
							<td align="right" width="65">&nbsp;</td>
							<td><input id="post_comments" type="button" value="Submit" class="inputstyle02 mt15" /></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<div class="sidebar f_l">
			<div class="contactus join">
				<p>Join in...</p>
				<a href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/t-iconv2.png" /></a><a
					href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/f-iconv2.png"></a><a
					href="#"><img
					src="<?php echo @constant('WEBSITE_URL');?>
public/images/g-iconv2.png" /></a>
			</div>
			<div class="Search mt40">
				<span class="columtitle">Search blog</span>
				<form>
					<table class="mt15 blogsearch">
						<tr>
							<td><input type="text" placeholder="Enter keywords"
								class="but-style03" /><input type="button" value="SEARCH"
								class="but-style04" /></td>
						</tr>
					</table>
				</form>
			</div>
			<div class="Categories mt40">
				<span class="columtitle">Categories</span>
				<ul class="mt15">
					<li><a href="#">General</a></li>
					<li><a href="#">Latest News</a></li>
					<li><a href="#">Web Design</a></li>
					<li><a href="#">Google</a></li>
					<li><a href="#">Other Search Engines</a></li>
					<li><a href="#">Social Media</a></li>
					<li><a href="#">Online PR</a></li>
					<li><a href="#">Videos</a></li>
					<li><a href="#">Events and Conferences </a></li>
				</ul>
			</div>
			<div class="Recent mt40">
				<span class="columtitle">Recent comments</span>
				<ul class="mt15">
					<li>
						<p class="f_l">
							<span>Thanks for the comment Alex, glad you found the article
								useful!</span>
						</p> <a href="#" class="f_l"><img
							src="<?php echo @constant('WEBSITE_URL');?>
public/photo/usericon.gif"
							alt="userimg">SarahFurbank</a>
					</li>
					<li>
						<p class="f_l">
							<span>Thanks for the comment Alex, glad you found the article
								useful! </span>
						</p> <a href="#" class="f_l"><img
							src="<?php echo @constant('WEBSITE_URL');?>
public/photo/usericon.gif"
							alt="userimg">SarahFurbank</a>
					</li>
					<li>
						<p class="f_l">
							<span>Thanks for the comment Alex, glad you found the article
								useful! </span>
						</p> <a href="#"><img
							src="<?php echo @constant('WEBSITE_URL');?>
public/photo/usericon.gif"
							alt="userimg">SarahFurbank</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<script language="JavaScript">
         var weburl = '<?php echo @constant('WEBSITE_URL');?>
';
         var parms = {'id':<?php echo $_smarty_tpl->tpl_vars['postid']->value;?>
};
 </script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<?php echo $_smarty_tpl->getSubTemplate ("layouts/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php }} ?>